@keyframes spinner-border {
  to {
    transform: rotate(360deg);
  }
}

.spinner-border {
  display: inline-block;
  width: $space-x6;
  height: $space-x6;
  vertical-align: text-bottom;
  border: 3px solid;
  border-radius: 50%;
  animation: spinner-border 1s linear infinite;

  &.s {
    width: $space-x4;
    height: $space-x4;
    border: $i-space-x1 solid;
  }

  &.l {
    width: $space-x8;
    height: $space-x8;
    border: $space-x1 solid;
  }

  &.xl {
    width: 4rem;
    height: 4rem;
    border: $space-x2 solid;
  }

  @each $name, $color in $theme-colors {
    &.#{$name} {
      border-color: $color;
      border-right-color: transparent;
    }
  }
}

.loading-modal {
  background-color: $white;
  overflow: hidden;
  max-width: 288px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;

  .loading-title {
    margin-top: $space-x3;
    margin-bottom: 0;
    font-size: 16px;
    line-height: 24px;
    text-align: center;
    letter-spacing: 0.15px;
    color: $gray-900;
  }
}

.empty-loading-modal {
  background-color: transparent;
  border-color: transparent;
  overflow: hidden;
  box-shadow: none;
}
